﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Shine.Framework
{
    /// <summary>
    /// Helper class to wrap window handle as IWin32Window interface
    /// </summary>
    public class WindowWrapper : System.Windows.Forms.IWin32Window
    {
        public WindowWrapper(IntPtr handle)
        {
            m_hwnd = handle;
        }
        public WindowWrapper(int handle)
        {
            m_hwnd = (IntPtr)handle;
        }
        public IntPtr Handle
        {
            get
            {
                return m_hwnd;
            }
        }
        private IntPtr m_hwnd;
    }
}